<?php
// 空港企业信息
class AirportEnterpriseInformationAction extends Action
{
	/**
	 * article_types 
	 * 文章类型
	 * @var string
	 * @access public
	 */
	var $article_types = array("航空公司","国际货运代理","国内空运服务代理","报关报检企业","空运快递公司","航空仓储企业","陆路运输企业","服务保险及金融企业","其它");
	/**
	 * model 
	 * 使用的model
	 * @var mixed
	 * @access public
	 */
	var $model = "AirportEnterpriseInformation";
	/**
	 * name 
	 * 模块名称,用于显示在列表页面
	 * @var mixed
	 * @access public
	 */
	var $module_name = array("空港企业信息");
	/**
	 * index 
	 * 显示文章列表
	 * @access public
	 * @return void
	 */
	public function index(){
		$model = M($this->model);
		import("ORG.Util.Page");
		$count = $model->count();
		$Page = new Page($count,2);
		$show = $Page->show();
		$list = $model->limit($Page->firstRow.','.$Page->listRows)->select();
		$this->assign("module_name",$this->module_name);
		$this->assign("list",$list);
		$this->assign("show",$show);
		$this->display("Index/airport_content");
	}
	/**
	 * delete 
	 * 删除文章
	 * @param mixed $id 要删除文章的id
	 * @access public
	 * @return void
	 */
	public function delete(){
		if(!empty($_GET['id'])){
			$model = M($this->model);
			$result = $model->delete($_GET['id']);
			$this->assign("jumpUrl","__URL__/index");
			$this->assign("waitSecond","3");
			if(false != $result){
				$this->success("删除成功!");
			}else{
				$this->error("删除失败!请重试!");
			}
		}else{
			$this->error("编辑项不存在");
		}
		// $this->redirect('Index/index');
	}
}
	?>
